<?php
/**
 * Created by PhpStorm.
 * User: ZZF
 * Date: 2017/3/16
 * Time: 11:36
 */

namespace app\admin\model;
use think\Model;
use think\Verify;
class CustomerModel extends Model{
	protected $validate = [
        'rule' => [
            'user_name' => "require|unique:customer,user_name|length:2,32",
            'real_name' => "require|length:2,32"
        ],
        'msg'  => [
            'user_name.require' => "用户名必须填写！",
            'user_name.length' => "用户名已存在",
            'user_name.length' => "用户名长度必须不少于2且不超过32",
            'real_name.require' => "客户姓名必须填写！",
            'real_name.length' => "客户姓名长度必须不少于2且不超过32"
        ]
   ];
}
